<ul>
    <?php foreach ($cate as $item) :?>
    	<li class="<?php if($cid == $item['cid']){echo 'ls';}?>"><a href="<?=site_url('article/lists/'.$item['cid'])?>"><span><?=$item['cateName']?></span></a></li>
    <?php endforeach;?>
</ul>
<ul class="right">
		<!-- Baidu Button BEGIN -->
		<div id="bdshare" class="bdshare_b" style="line-height: 12px;">
		<img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg?cdnversion=20120831" />
		</div>
		<script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=224457" ></script>
		<script type="text/javascript" id="bdshell_js"></script>
		<script type="text/javascript">
		document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
		</script>
		<!-- Baidu Button END -->
</ul>